package com.foftact.etfhist;

import com.alibaba.fastjson2.annotation.JSONField;
import java.util.List;

/**
 * ETF历史净值响应数据传输对象
 * 用于表示API返回的完整数据结构
 */
public class ETFHistoryResponseDTO {
    @JSONField(name = "Data")
    private DataDTO data;

    // getter和setter方法
    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ETFHistoryResponseDTO{" +
                "data=" + data +
                '}';
    }

    /**
     * 数据内部DTO类
     */
    public static class DataDTO {
        @JSONField(name = "LSJZList")
        private List<ETFHistoryDTO> lsjzList; // 历史净值列表

        // getter和setter方法
        public List<ETFHistoryDTO> getLsjzList() {
            return lsjzList;
        }

        public void setLsjzList(List<ETFHistoryDTO> lsjzList) {
            this.lsjzList = lsjzList;
        }

        @Override
        public String toString() {
            return "DataDTO{" +
                    "lsjzList=" + lsjzList +
                    '}';
        }
    }
}